
--Main functions called directly from engine 

function Initialize()

end

function Update()

end

function OnTileCollision(tile,normal)

end

function OnEntityCollision(entity,normal)
	
	if entity:GetCategory() == "Collectible" then
		entity:Kill();
		core.SpawnParticles("fire",entity:GetPosition(),normal * -1,true,"parts");
		audio.PlaySound("cc.wav");
	elseif entity:GetType() == "fake" or entity:GetType() == "fake2"  then
		entity:Kill();
		core.SpawnParticles("rocks",entity:GetPosition(),vect.Vector2F(0,-1),true,"parts");
		audio.PlaySound("smash.wav");
	elseif entity:GetType() == "sign" then
		this:NotifyState("changeLVL");
	end
end
